<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共嵌套模板</title>
</head>
<body>
    <!-- 网络电话 -->
    <th:block th:fragment="netcallForMaster(masterId)">
        <a class="zmn-btn-text btn-netcall" data-th-data-id="${master.masterId}">
            <i class="zmn-icon zmn-icon-voice"></i>
        </a>
    </th:block>

    <!-- 呼叫中心电话 -->
    <th:block th:fragment="callForCC(telephone)">
        <a class="zmn-btn-text btn-cc-call layui-hide" data-th-data-telephone="${telephone}" data-th-data-phone="${telephone}">
            <i class="zmn-icon zmn-icon-phone1"></i>
        </a>
    </th:block>

    <!-- 订单详情-发短信 -->
    <th:block th:fragment="sendSms(list)">
        <div class="modal-content">
            <form class="layui-form" action="">
                <input type="hidden" name="mobile">
                <div class="layui-form-item">
                    <label class="layui-form-label">短信模板</label>
                    <div class="layui-input-inline">
                        <select name="groupId" lay-verify="required" lay-filter="groupId" style="width: 140px;">
                            <option th:each="item : ${list}"
                                    th:value="${item.groupId}"
                                    th:text="${item.name}"
                                    data-th-data-channelids="${item.channelIds}"
                                    data-th-data-content="${item.text}">
                            </option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block">
                        <textarea class="layui-textarea" readonly></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn submit-btn" type="submit" lay-submit>确定</button>
                        <button type="button" class="layui-btn layui-btn-primary cancel-btn" lay-submit>取消</button>
                    </div>
                </div>
            </form>
        </div>
    </th:block>


</body>
</html>